package com.zhiyou100.inner_demo;

public class Test {

    public static void main(String[] args) {
        Car car = new Car();
        car.setName("保时捷");
        car.setPrice(1000000);
        //声明一个引擎对象
        Car.Engine engine = car.new Engine(3.9, "牛掰");
        //启动引擎
        engine.startUp();
        car.say(engine);
    }


}
